using UnityEngine;
using System.Collections;

public class movePlayer : MonoBehaviour {
    float velChar = -7;
	
	void Start()
	{
		transform.position = new Vector3(0, 1, 0);
	}
	
	void Update() {
		
        if (Input.GetKey(KeyCode.S)){        
			transform.Translate (0, 0,-velChar*Time.deltaTime); 
			
		}
        if (Input.GetKey(KeyCode.W)){      
			transform.Translate(0, 0,velChar*Time.deltaTime);
			
		}
		if (Input.GetKey(KeyCode.D)){     
			transform.Translate(velChar*Time.deltaTime, 0, 0);	
			
		}
		if (Input.GetKey(KeyCode.A)){
        	transform.Translate(-velChar*Time.deltaTime,0,0);
			
		}		
    }
}

 